<template>
	<view class="main">
		<u-navbar :is-back="false" title="门店运营" :background="background" :border-bottom="false"
			back-icon-color="#000000" title-color="#FFFFFF" title-bold="true"></u-navbar>
		<view class="background">
			<image src="../../../static/images/bj.png" mode=""></image>
		</view>
		<view class="num">
			<view class="left">
				<view class="child">
					<view>{{info.num==''?'0':info.num}}</view>
					<text>今日订单</text>
				</view>
			</view>
			<view class="xian">

			</view>
			<view class="left">
				<view class="child">
					<view>¥{{info.price==''?'0':info.price}}</view>
					<text>今日订单收入</text>
				</view>
			</view>
		</view>
		<view class="mid">
			<view class="cont" @click="router('../../manage/all_manage/all_manage')">
				<view class="lefts">
					<image src="../../../static/images/spgl.png" mode=""></image>
					<text>商品管理</text>
				</view>
				<image class="r_img" src="../../../static/images/right.png" mode=""></image>
			</view>
			<view class="cont" @click="router('../../users/specific_manage/specific_manage')">
				<view class="lefts">
					<image src="../../../static/images/gg.png" mode=""></image>
					<text>规格管理</text>
				</view>
				<image class="r_img" src="../../../static/images/right.png" mode=""></image>
			</view>
			<view class="cont" @click="router('../../activity/activity_operation/activity_operation')">
				<view class="lefts">
					<image src="../../../static/images/hdyy.png" mode=""></image>
					<text>活动运营</text>
				</view>
				<image class="r_img" src="../../../static/images/right.png" mode=""></image>
			</view>
			<view class="cont" @click="router('../withdraw/withdraw')">
				<view class="lefts">
					<image src="../../../static/images/txsq.png" mode=""></image>
					<text>提现申请</text>
				</view>
				<image class="r_img" src="../../../static/images/right.png" mode=""></image>
			</view>
			<view class="cont" @click="router('../../users/evaluation/evaluation')">
				<view class="lefts">
					<image src="../../../static/images/pj.png" mode=""></image>
					<text>用户评价</text>
				</view>
				<image class="r_img" src="../../../static/images/right.png" mode=""></image>
			</view>
			<view class="cont" @click="router('../../users/notification/notification')">
				<view class="lefts">
					<image src="../../../static/images/xxtz.png" mode=""></image>
					<text>消息通知</text>
				</view>
				<image class="r_img" src="../../../static/images/right.png" mode=""></image>
			</view>
			<view class="cont" @click="router('../../statistics/statistics/statistics')">
				<view class="lefts">
					<image src="../../../static/images/tj.png" mode=""></image>
					<text>营业统计</text>
				</view>
				<image class="r_img" src="../../../static/images/right.png" mode=""></image>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				background: {
					backgroundColor: '#E22222'
				},
				info:''

			}
		},
		onLoad() {

		},
		mounted() {

		},
		onShow() {
			this.getnum()
		},
		methods: {
			//统一跳转
			router(path) {
				uni.navigateTo({
					url: path
				})
			},
			getnum(){
				global.$http.request({
					url:'/shopapi/order/statistics',
					data:{
						token:uni.getStorageSync('token')
					}
				}).then(res=>{
					console.log(res.data.data);
					if(res.data.code==200){
						this.info=res.data.data
					}
				})
			}

		}
	}
</script>
<style lang="scss">
	page {
		font-family: Source Han Sans CN;
		width: 750rpx;
		margin: 0 auto;
		background-color: #f7f7f7;

		.main {
			width: 750rpx;
			margin: 0 auto;

			.background {

				image {
					position: absolute;
					top: 80rpx;
					z-index: -10;
					width: 750rpx;
					height: 1334rpx;
				}
			}

			.num {
				background-color: #FFFFFF;
				width: 710rpx;
				margin: 0 auto;
				height: 160rpx;
				border-radius: 20rpx;
				display: flex;
				justify-content: space-around;
				align-items: center;

				.left {

					.child {
						display: flex;
						flex-direction: column;
						align-items: center;

						view {
							font-size: 40rpx;
							font-weight: 500;
							color: #000000;
						}

						text {
							padding-top: 22rpx;
							font-size: 22rpx;
							font-weight: 400;
							color: #4D4D4D;
						}
					}
				}

				.xian {
					width: 2rpx;
					height: 40rpx;
					background: #E6E6E6;
				}
			}

			.mid {
				margin-top: 10rpx;

				.cont {
					background-color: #fff;
					padding: 20rpx 25rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;
					margin-bottom: 2rpx;

					.lefts {
						display: flex;
						align-items: center;

						image {
							width: 58rpx;
							height: 58rpx;
						}

						text {
							padding-left: 36rpx;
							font-size: 28rpx;
							font-weight: 400;
							color: #000000;
						}
					}

					.r_img {
						width: 10rpx;
						height: 16rpx;
					}
				}
			}
		}
	}
</style>
